<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>最美毕业季</title>
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <link rel="stylesheet" href="./css/submit.css">
    <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
    <script>
        var ua = window.navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
            $.post('/requestCheck.do', function (data) {

                if (data.openurl) {
                    ;
                } else {
                    window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3d82ee90de3bc437&redirect_uri=http://zmbyj.cqupt.edu.cn/oauth.do&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect";
                }
            });
        } else {
            window.location.href = './error.html';
        }
    </script>
</head>
<body>
<div class="main">
    <header>
        <a class="backIcon" href="index.html">
            <img src="./img/goBack.png" alt="back">
        </a>
        <span>最美毕业季</span>
    </header>
    <div class="submitPart">
        <div class="headline">
            <p>参赛报名</p>
        </div>
        <div class="submitForm">
            <div class="form">
                <form id="formUp" action="/uploadFile.do" name="submitForm" method="post" enctype="multipart/form-data">
                    <div class="formdivfirst"><p>参赛身份：</p>
                        <input type="text" name="time" class="time" id="time" value="">

                        <input id="underGraduate" type="radio" name="identity" value="0" checked>
                        <label for="underGraduate">在校学生&nbsp;&nbsp;&nbsp;&nbsp;</label>
                        <input id="graduate" type="radio" name="identity" value="1"><label for="graduate">毕业校友</label>
                    </div>
                    <div class="clearfix formdiv">
                        <p>联系电话：</p><input id="phoneNum" name="phoneNum" type="text" class="input"
                                           placeholder="17784451111" onblur="checkPhoneNum()">
                    </div>

                    <div class="clearfix  prompt formdiv"><p>姓名：</p><input type="text" id="name" name="name"
                                                                           class="input" placeholder="张三"></div>
                    <div id="uG1" class="clearfix formdiv"><p>学院：</p>
                        <select name="Institute" id="Institute">
                            <option value="1">通信与信息工程学院</option>
                            <option value="2">计算机科学与技术学院</option>
                            <option value="3">自动化学院</option>
                            <option value="4">先进制造工程学院</option>
                            <option value="5">光电工程学院/重庆国际半导体学院</option>
                            <option value="6">生物信息学院</option>
                            <option value="7">理学院</option>
                            <option value="8">经济管理学院/现代邮政学院</option>
                            <option value="9">传媒艺术学院</option>
                            <option value="10">外国语学院</option>
                            <option value="11">国际学院</option>
                            <option value="12">网络空间安全与信息法学院</option>
                            <option value="13">马克思主义学院</option>
                            <option value="14">体育学院</option>
                            <option value="15">创新创业教育学院/继续教育学院</option>
                            <option value="16">国防信息工程技术研究院</option>
                            <option value="17">电子信息与网络工程研究院</option>
                            <option value="18">软件工程学院</option>
                        </select>
                    </div>
                    <div id="uG2" class="clearfix formdiv">
                        <p>学号：</p><input id="stuId" name="stuId" type="text" class="input" placeholder="10个字符的学号哟"
                                         onblur="checkStuId()">
                    </div>

                    <div class="clearfix  prompt formdiv">
                        <p>图片故事：</p><textarea name="picIntroduction" id="picIntroduction" rows="3"
                                              placeholder="在此输入图片简介"></textarea>
                    </div>
                    <div class="picUpload formdiv clearfix">

                        <div class="upImg1" id="upImg1Id">
                            <input type="file" accept="image/png, image/jpeg,image/jpg" id="picUpload1" name="picture">
                            <img src="./img/upimg.png" alt="" id="preview1" class="preview">
                            <div class="deleteImg" id="deleteImgId1">
                                <img src="./img/deleteImg.png" alt="">
                            </div>
                        </div>
                        <div class="upImg2" id="upImg2Id">
                            <input type="file" accept="image/png, image/jpeg,image/jpg" id="picUpload2" name="picture">
                            <img src="./img/upimg.png" alt="" id="preview2" class="preview">
                            <div class="deleteImg" id="deleteImgId2">
                                <img src="./img/deleteImg.png" alt="">
                            </div>

                        </div>
                    </div>

                    <input class="submit" type="submit" value="提交信息" onclick="return check()">
                </form>
            </div>

        </div>
        <div class="produce">
            <a
                    href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzAwMDk1NjczMw==&scene=124#wechat_redirect">重庆邮电大学基金会出品</a><a
                href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzA5NjAxMTk5OQ==&scene=124#wechat_redirect">重庆邮电大学出品</a>
        </div>
    </div>
</div>
<div class="message" id="messageId"></div>
</body>
<script src="js/submit.js"></script>
</html>